package question3;

/**
 * @FileName Test
 * @Description
 * @Author Sword
 * @date 2024-11-06
 **/
public class Test {
    public static void main(String[] args) {
        //编写程序剔除一个字符串中的全部非数字字符。
        String str = "12x6v7a86ty";
        String replaced = str.replaceAll("[^0-9]", "");
        System.out.println(replaced);

    }
}
